package com.woniuxy.table.common;


import result.Messagable;

public enum TableResultCode implements Messagable {
    DELETE_FAILED(3008, "删除失败"),
    DUPLICATE_REGIONAL_ADDRESS(3007, "区域地址重复"),
    IS_ALREADY_IN_THIS_STATE(3006, "已是该状态"),
    INVALID_REGIONAL_ADDRESS(3005, "区域地址无效"),
    DINING_TABLE_DOES_NOT_EXIST(3004, "餐桌不存在"),
    TABLE_NUMBER_DUPLICATED(3003, "餐桌编号重复"),
    TYPE_DOES_NOT_EXIST(3002, "该类型不存在"),
    DATA_ERROR(3001, "数据异常"),
    DUPLICATE_TYPE(3000, "桌型名称重复")

    ;

    private Integer code;
    private String message;

    private TableResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
